package com.ampaiva.dao;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class MyDroidSQLDatabase {
    private final SQLiteOpenHelper sqlLiteOpenHelper;
    private SQLiteDatabase sqlLiteDatabase;

    public MyDroidSQLDatabase(Context context, String zipFile, String dbName) {
        sqlLiteOpenHelper = new MyDroidSQLiteOpenHelper(context, zipFile, dbName);
    }

    public void open() {
        sqlLiteDatabase = sqlLiteOpenHelper.getWritableDatabase();
    }

    public void close() {
        sqlLiteDatabase.close();
    }

    public SQLiteDatabase getSqlLiteDatabase() {
        return sqlLiteDatabase;
    }
}
